package io.jft.doll.ui.doll.bind

import com.g.base.ui.recyclerView.item.BaseItem
import io.jft.doll.R
import io.jft.doll.databinding.ItemDollDisplayBinding
import io.jft.doll.room.entity.remote.OwnDollListItemREntity

/**
 * Created by G on 2017/12/5 0005.
 */
class DollDisplayBind(val item: OwnDollListItemREntity, val clickable: Boolean) : BaseItem<ItemDollDisplayBinding>() {
    override val layoutId: Int = R.layout.item_doll_display
    fun getStatus() =
            when (item.status) {
                1 -> "寄存中"
                2 -> "待发货"
                3 -> "待收货"
                4 -> "已领养"
                5 -> "换积分"
                else -> ""
            }
}